2.15
2.15.1 This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.
2.15.1.1 This chapter describes how to access the Elementary Files (referred to as EF) on the SIM using the command AT+CRSM=<command>[,<fileID>[,<P1>,<P2>,<P3>[,<data>]]]”.Access to the SIM database is restricted to the following operations specified with the parameter <command>:
Reads a string of bytes, which gives information about the current transparent elementary datafield. Reads a complete record in a current linear or fixed elementary datafield. Four modes (CURRENT, ABSOLUTE, NEXT, PREVIOUS) are defined to read a record. Return data, which gives information about the
current elementary datafield. This information includes the type of file and its size. UPDATE BINARY updates the current transparent elementary data field with a string of bytes. UPDATE RECORD updates one complete record in the current linear fixed or cyclic elementary data fields. For update operations there are four modes (CURRENT, ABSOLUTE, NEXT, PREVIOUS) defined, but only PREVIOUS is allowed for cyclic files. Return data which gives information about the
current elementary data field.The <fileID> is the identifier of the EF on the SIM and mandatory for every command except for STATUS. <P1>, <P2>, <P3> are parameters for the instruction.Every command sends the ME a response with the current SIM information and response data. The response parameters <sw1> and <sw2> are delivered on successful or failed execution of the command. If the command cannot be passed to the SIM, the ME will return “+CME ERROR: <err>”.
Figure 128: READ RECORD example responseThis example shows how to read a record (“last number dailed”) from the SIM. First, the response “+CRSM:103,28” will be returned. The first parameter <sw1> = ‘103’ is a decimal value, the appropriate hexadecimal value is ‘67’ which means “incorrect parameter <P3>”. The second parameter <sw2>=’xx’ gives the correct length (in example ‘28’) or states that no additional information is given.
2.15.1.2
2.15.1.3 Figure 129: SIM access "GET RESPONSE"Figure 130: SIM access "READ BINARY"Figure 131: SIM access "READ RECORD"Figure 132: SIM access "UPDATE RECORD"- part 1Figure 133: SIM access "UPDATE RECORD"- part 2
2.15.1.4
2.15.1.5
|